package com.yibing.plat;

import java.io.OutputStream;

public abstract class Sender extends Thread {

	public void setOutputStream(OutputStream o) {
		out = o;
	}
	
	public abstract void send(OutputStream s);
	
	@Override
	public void run() {
		send(out);
	}
	
	private OutputStream out;
	
}
